<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <title>监控箱故障审核</title>
</head>
<body>
<div class="box">
    <div class="box-body">
        <table id="mainDataTables" class="table table-bordered table-striped" cellspacing="0" width="100%">
            <thead>
            <tr>
                <th>序号</th>
                <th>监控箱图片</th>
                <th>维护单位</th>
                <th>报告人</th>
                <th>报告时间</th>
                <th>企业审核人</th>
                <th>单位审核人</th>
                <th>监控箱详情</th>
                <th>故障详情</th>
                <th>操作</th>
            </tr>
            </thead>
        </table>
    </div>
</div>
<!--类型选择-->
<div id="signalLampTypeSelect" class="modal fade" tabindex="-1" role="dialog"
     aria-labelledby="upPictureModalLabel" aria-hidden="true" style="z-index: 1500">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"
                        onclick="$.clearModal($('#typeForm'),$('#signalLampTypeSelect'))">
                    <span aria-hidden="true">&times;</span>
                </button>
                <b class="modal-title"> 类型查看</b>
            </div>
            <div class="modal-body row" style="overflow: hidden;">
                <form id="typeForm">
                    <table class="table table-bordered table-striped" style="position: relative;top: -17px;">
                        <tr>
                            <td>
                                <!--<input id="selectAll" onchange="$.changeCheck2()" type="checkbox">-->
                            </td>
                            <td>类型</td>
                        </tr>
                        <tr>
                            <td><input id="check0" type="checkbox" vlaueType="0" disabled></td>
                            <td><label for="check0">机动车信号灯</label></td>
                        </tr>
                        <tr>
                            <td><input id="check1" type="checkbox" vlaueType="1" disabled></td>
                            <td><label for="check1">方向指示信号灯</label></td>
                        </tr>
                        <tr>
                            <td><input id="check2" type="checkbox" vlaueType="2" disabled></td>
                            <td><label for="check2">调头信号灯</label></td>
                        </tr>
                        <tr>
                            <td><input id="check3" type="checkbox" vlaueType="3" disabled></td>
                            <td><label for="check3">非机动车信号灯</label></td>
                        </tr>
                        <tr>
                            <td><input id="check4" type="checkbox" vlaueType="4" disabled></td>
                            <td><label for="check4">人行横道信号灯</label></td>
                        </tr>
                        <tr>
                            <td><input id="check5" type="checkbox" vlaueType="5" disabled></td>
                            <td><label for="check5">车道信号灯</label></td>
                        </tr>
                        <tr>
                            <td><input id="check6" type="checkbox" vlaueType="6" disabled></td>
                            <td><label for="check6">道口信号灯</label></td>
                        </tr>
                        <tr>
                            <td><input id="check7" type="checkbox" vlaueType="7" disabled></td>
                            <td><label for="check7">倒计时器</label></td>
                        </tr>
                        <tr>
                            <td><input id="check8" type="checkbox" vlaueType="8" disabled></td>
                            <td><label for="check8">闪光警告信号灯</label></td>
                        </tr>
                    </table>
                </form>
            </div>
            <!--<div class="modal-footer">-->
            <!--<button type="button" class="btn btn-primary"-->
            <!--onclick="$.clearModal($('#typeForm'),$('#signalLampTypeSelect'))">-->
            <!--<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> 取消-->
            <!--</button>-->
            <!--<button type="button" class="btn btn-success" id="signalLampTypeSelectBtn">-->
            <!--<span class="glyphicon glyphicon-ok" aria-hidden="true"></span> 完成-->
            <!--</button>-->
            <!--</div>-->
        </div>
    </div>
</div>
<!--审核Modal-->
<div class="modal fade bs-example-modal-sm" id="auditModal" tabindex="-1" role="dialog"
     aria-labelledby="auditModalLabel"
     aria-hidden="true">
    <div class="modal-dialog" style="width: 700px;">
        <div class="modal-content">
            <div class="modal-header">
                <label class="modal-title" id="auditModalLabel"></label>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"
                        onclick="$.closeShowModal()">
                    <span aria-hidden="true">&times;</span></button>
                <!--<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>-->
                </button>
            </div>
            <div class="modal-body" id="md-body" style="max-height: 500px; overflow-y: auto">

                <table class="table table-bordered table-striped">
                    <tr>
                        <td class="col-sm-3">故障编号</td>
                        <td class="col-sm-3"><span id="signFaultId4Audit"></span></td>
                        <td class="col-sm-3">故障等级</td>
                        <td class="col-sm-3"><span id="signFaultLevel4Audit"></span></td>
                    </tr>
                    <tr>
                        <td class="col-sm-3">故障类型</td>
                        <td class="col-sm-3"><span id="signFaultType4Audit"></span></td>
                        <td class="col-sm-3">审核人</td>
                        <td class="col-sm-3"><span id="checkPerson4Audit"></span></td>
                    </tr>
                    <tr>
                        <td class="col-sm-3">报告人</td>
                        <td class="col-sm-3"><span id="signFaultPeopleName4Audit"></span></td>
                        <td class="col-sm-3">报告时间</td>
                        <td class="col-sm-3"><span id="signFaultTime4Audit"></span></td>
                    </tr>
                    <tr>
                        <td colspan="2">报修金额(单位:元)</td>
                        <td colspan="2">
                            <span id="solarMoney4Audit"></span>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="1">审核反馈</td>
                        <td colspan="3">
                            <input type="text" class="form-control" id="signFaultCheckBack4Audit">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">故障原因</td>
                        <td colspan="2">故障图片</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div style="height:130px;" id="signFaultReason4Audit"></div>
                        </td>
                        <td colspan="2">
                            <img id="signFaultPic4Audit" src="" style="width:83%;"
                                 onclick="$.showPicModal(src)">
                            <br/>
                            <span style="font-size: 5px;color: gray;">点击图片放大</span>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">监控箱位置</td>
                    </tr>
                    <tr>
                        <td colspan="4" rowspan="3">
                            <iframe src="fault/map.html" id="showEventContent4Audit"
                                    style="width: 100%;height: 279px;"
                                    frameBorder=0
                                    scrolling=no></iframe>
                        </td>
                    </tr>
                </table>
                <input type="hidden" id="roadSignId" name="roadSignId">
            </div>
            <input type="hidden" id="faultId" name="faultId">
            <div class="modal-footer">
                <p id="addPersonName"></p>
                <button type="submit" id="ac-button" onclick="$.faultAudit(1)" class="btn btn-success pull-right btn-flat" >
                    <i class="fa fa-trash-o" aria-hidden="true"></i> 通过
                </button>
                <button id="notac-button" class="btn btn-danger pull-right btn-flat" style="margin-right: 5px" onclick="$.faultAudit(-1)">
                    <i class="fa fa-trash-o" aria-hidden="true"></i> 不通过
                </button>
                <button type="button" class="btn btn-primary pull-right btn-flat" data-dismiss="modal"
                        onclick="$.closeShowModal()"><i
                        class="fa fa-trash-o"></i> 取消
                </button>
            </div>
        </div>
    </div>
</div>
<!-- 图片预览modal -->
<div class="modal fade bs-example-modal-sm" id="preModal" tabindex="-1" role="dialog" aria-labelledby="preModal"
     aria-hidden="true">
    <div class="modal-dialog" style="width: 700px;">
        <div class="modal-content">
            <div class="modal-header">
                <label class="modal-title" id="preModalLabel" style="font-size: 16px;">故障图片 </label>
                <button type="button" title='关闭' class="btn btn-danger btn-xs" onclick="$.closePhoto()" id="adjustBu"
                        style="float: right; margin-top: -5px;">
                    <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
                </button>
            </div>
            <div class="modal-body" align="center" id="selectModal_body">
                <img id="preViewImg" src="" style="width: 450px;">
            </div>
            <div class="modal-footer">
            </div>
        </div>
    </div>
</div>
<!-- 信号灯详情 modal-->
<div id="detailInfoModal" class="modal fade" tabindex="-1" role="dialog"
     aria-labelledby="detailInfoModalLabel" aria-hidden="true">
    <div class="modal-dialog" style="width: 800px;">
        <div class="modal-content">
            <form id="detailInfoModalForm"
                  class="form-horizontal" role="form" method="post">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"
                            onclick="$.closeDetailInfoModal()">
                        <span aria-hidden="true">&times;</span></button>
                    <b class="modal-title" id="detailInfoModalLabel"></b>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">地址</label>
                                <div class="col-sm-3" style="padding-right: 0">
                                    <input type="text" class="form-control" id="detail_province"
                                           placeholder="省" style="padding-right: 10px" readonly>
                                </div>
                                <div class="col-sm-3" style="padding-left: 7px; padding-right: 7px">
                                    <input type="text" class="form-control" id="detail_city"
                                           placeholder="市" style="padding-right: 10px" readonly>
                                </div>
                                <div class="col-sm-3" style="padding-left: 0">
                                    <input type="text" class="form-control" id="detail_area"
                                           placeholder="区/县" style="padding-right: 10px" readonly>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">坐标</label>
                                <div class="col-sm-8" style="padding-right: 0">
                                    <input type="text" class="form-control" id="detail_coordinate"
                                           placeholder="坐标" style="padding-right: 10px" readonly>
                                </div>
                                <div class="col-sm-1">
                                    <button type="button" style="height: 34px;float: right;" class="myBtnUpdate"><i
                                            class="fa fa-map-marker"></i></button>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">监管单位</label>
                                <div class="col-sm-9">
                                    <input type="text" class="form-control" id="detail_mainOrgName"
                                           placeholder="监管单位" readonly>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">养护公司</label>
                                <div class="col-sm-9">
                                    <input type="text" class="form-control" id="detail_orgName"
                                           placeholder="养护公司" readonly>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">采集人</label>
                                <div class="col-sm-9">
                                    <input type="text" class="form-control" id="detail_creatorName"
                                           placeholder="采集人" readonly>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">路名</label>
                                <div class="col-sm-9">
                                    <input type="text" class="form-control" id="detail_roadName"
                                           placeholder="路名" readonly>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">起始路口</label>
                                <div class="col-sm-9">
                                    <input type="text" class="form-control" id="detail_startRoad"
                                           placeholder="起始路口" readonly>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">结束路口</label>
                                <div class="col-sm-9">
                                    <input type="text" class="form-control" id="detail_endRoad"
                                           placeholder="结束路口" readonly>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-6">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">监控箱照片</label>
                                <div class="col-sm-9">
                                    <img id="detail_photo" src=""  onclick="$.showPicModal(src)"
                                         style="cursor: pointer;height: 185px; width: 260px">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">安装企业</label>
                                <div class="col-sm-9">
                                    <input type="text" class="form-control" id="detail_installOrg"
                                           placeholder="安装企业" readonly>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">监控杆形状</label>
                                <div class="col-sm-9">
                                    <select class="form-control" id="detail_monitorPoleShape"
                                            disabled>
                                        <!--0:八角; 1:圆管; 2:等径; 3:变径; 4:锥形;-->
                                        <option value="0">八角</option>
                                        <option value="1">圆管</option>
                                        <option value="2">等径</option>
                                        <option value="3">变径</option>
                                        <option value="4">锥形</option>

                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">监控朝向</label>
                                <div class="col-sm-9">
                                    <select class="form-control" id="detail_monitorDirection"
                                            disabled>
                                        <option value="0">东</option>
                                        <option value="1">南</option>
                                        <option value="2">西</option>
                                        <option value="3">北</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">监控箱位置</label>
                                <div class="col-sm-9">
                                    <select class="form-control" id="detail_monitorPosition"
                                            disabled>
                                        <option value="0">地面</option>
                                        <option value="1">杆上</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<!--故障上报/详情modal-->
<div class="modal fade bs-example-modal-sm" id="addFaultModal" tabindex="-1" role="dialog"
     aria-labelledby="addFaultModalLabel"
     aria-hidden="true">
    <div class="modal-dialog" style="width: 800px;">
        <div class="modal-content">
            <div class="modal-header">
                <label class="modal-title" id="addFaultModalLabel"></label>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"
                        onclick="$.closeAddFaultModal()">
                    <span aria-hidden="true">&times;</span></button>
                </button>
            </div>
            <div class="modal-body" id="add-body" style="overflow: auto">
                <table class="table table-bordered table-striped">
                    <tr>
                        <td class="col-sm-3">上报人员</td>
                        <td class="col-sm-3"><span id="addFault_creatorName"></span></td>
                        <td class="col-sm-3">上报人员电话</td>
                        <td class="col-sm-3"><span id="addFault_creatorPhone"></span></td>
                    </tr>
                    <tr>
                        <td class="col-sm-3">设施位置名称</td>
                        <td class="col-sm-3"><span id="addFault_roadName"></span>
                            <button style="float: right;" id="addFault_DTBtn" onclick="$.signalMachineDTModal()"><i
                                    class="fa fa-align-justify">
                            </i></button>
                            <button style="float: right;" id="addFault_signMapBtn" onclick="$.selectSignalMap()"><i
                                    class="fa fa-map-marker">
                            </i></button>
                        </td>
                        <td class="col-sm-3">预计维修金额(元)</td>
                        <td class="col-sm-3"><input type="text" id="addFault_money"
                                                    onkeyup="onlyNumber(this)" placeholder="0.00"/></td>
                    </tr>
                    <tr>
                        <td class="col-sm-3">所属路口路段</td>
                        <td colspan="3"><span id="addFault_address"></span></td>
                    </tr>
                    <tr>
                        <td class="col-sm-3">故障类型</td>
                        <td class="col-sm-3"><select class="form-control" id="addFault_faultType"></select></td>
                        <td class="col-sm-3">故障等级</td>
                        <td class="col-sm-3">
                            <select class="form-control" id="addFault_faultLevel">
                                <option value="1">一级</option>
                                <option value="2">二级</option>
                                <option value="3">三级</option>
                                <option value="4">四级</option>
                                <option value="5">五级</option>
                            </select></td>
                    </tr>
                    <tr>
                        <td>故障原因</td>
                        <td colspan="3">
                            <textarea class="form-control" id="addFault_faultReason"
                                      style="height: 80px"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>故障图片</td>
                        <td colspan="3" rowspan="2">
                            <img id="addFault_faultPhoto" src=""  onclick="$.showPicModal(src)"
                                 style="width:83%;height: 300px;cursor: pointer"/>
                        </td>
                    </tr>
                </table>
            </div>
            <input type="hidden" id="addFault_machineFaultId">
            <input type="hidden" id="addFault_signalMachineId">
            <input type="hidden" id="addFault_machineOrgId">
            <input type="hidden" id="addFault_machineMainOrgId">
        </div>
    </div>
</div>
<!--//地图-->
<div id="modal-map" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="label-map"
     aria-hidden="true">
    <div class="modal-dialog" style="width: 800px;">
        <div class="modal-content">
            <form id="form-map" name="form-map" class="form-horizontal" role="form" method="post">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"
                            onclick="$.clearModal($('#form-map'), $('#modal-map'))">
                        <span aria-hidden="true">&times;</span></button>
                    <b class="modal-title" id="label-map">地图展示</b>
                </div>
                <div class="modal-body">
                    <iframe src="fault/roadPoleAuditMap.html" id="myMap"
                            style="width: 100%;height: 365px"
                            frameBorder=0
                            scrolling=no></iframe>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary btn-flat"
                            onclick="$.clearModal($('#form-map'), $('#modal-map'))">
                        <span class="glyphicon glyphicon-ok" aria-hidden="true"></span> 完成
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>

<script src="fault/monitorCheck.js"></script>
</body>
</html>